package com.example.myapplication;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

/**
 * @author: wangqi
 * @date: 2020/8/14
 * @description:
 */
public class TimeAdapter extends BaseQuickAdapter<DataBean, BaseViewHolder> {
    private Context mContext;

    public TimeAdapter(Context mContext) {
        super(R.layout.adapter_time);
        this.mContext = mContext;
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, DataBean dataBean) {

//        baseViewHolder.setText(R.id.tv_name_phone, dataBean.getSd_username() + "  " + dataBean.getSd_mobile())
//                .setText(R.id.tv_addres, dataBean.getSd_area() + "  " + dataBean.getSd_address());
//
//        if (1 == dataBean.getSd_default()) {
//            //选中
//            baseViewHolder.setGone(R.id.iv_select, false);
//            baseViewHolder.setText(R.id.tv_moren, "已设为默认");
//        } else {
//            //no check
//            baseViewHolder.setGone(R.id.iv_select, true);
//            baseViewHolder.setText(R.id.tv_moren, "设为默认");
//        }

    }
}
